package org.si.graphics;

import java.awt.Component;
import java.awt.Paint;

/**
 * This PaintProvider always paints the same paint.
 *
 * @author Matt Nathan
 */
public class FixedPaintProvider implements PaintProvider {

    private final Paint paint;





    public FixedPaintProvider(Paint paint) {
        this.paint = paint;
    }





    @Override
    public Paint get(Component c, int x, int y, int width, int height) {
        return paint;
    }
}
